﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="teaIndex.aspx.cs" Inherits="stuManage.teaIndex" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>教师首页</title>
    <link href="CSS/style.css" rel="stylesheet" />
    <link href="CSS/bootstrap.css" rel="stylesheet" />
    <link href="CSS/style.css" rel="stylesheet" />
</head>
<body>
    <div id="wrapper">
        <form id="form1" runat="server">
            <div id="page-content-wrapper">
                <div class="info">
                    <img src="image/admin.jpg" alt="管理员" class="img-circle" width="60" height="60" />
                    <div runat="server" id="information"></div>
                    <asp:HyperLink ID="HyperLink4" class="btn btn-default btn-default active" role="button" runat="server" NavigateUrl="login.aspx">注销</asp:HyperLink>

                </div>
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 col-xs-12  col-sm-offset-0">
                            <h1 class="page-header">课程信息概览</h1>
                        </div>
                    </div>
                    <br />
                    <br />
                    <br />

                    <div style="margin: 0 auto; width: 1000px">
                        <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1" AutoGenerateColumns="False" class="table  table-condensed" ForeColor="White" OnRowDataBound="GridView1_RowDataBound">
                            <Columns>
                                <asp:BoundField DataField="tea_id" />
                                <asp:BoundField DataField="couId" HeaderText="课程编号" />
                                <asp:BoundField DataField="couName" HeaderText="课程名称" />
                                <asp:BoundField DataField="num" HeaderText="选课人数" />
                                <asp:HyperLinkField Text="录入成绩" DataNavigateUrlFields="tea_id,couId,couName" DataNavigateUrlFormatString="inputGrade.aspx?teaid={0}&id={1}&name={2}" />
                            </Columns>
                        </asp:GridView>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"></asp:SqlDataSource>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script>
    <script src="https://www.jq22.com/jquery/bootstrap-3.3.4.js"></script>
</body>
</html>
